//
//  MSTypeAView.m
//  testMasory
//
//  Created by xiangbo on 2018/9/20.
//  Copyright © 2018年 xiangbo. All rights reserved.
//

#import "MSTypeADetailView.h"

@interface MSTypeADetailView ()

@end

@implementation MSTypeADetailView

-(instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        
        self.descView = [[MSDescDetailView alloc] init];
        [self addSubview:self.descView];
        
        [self.descView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.right.bottom.equalTo(self);
            make.height.mas_equalTo(90);
        }];
        
        [self.backImage mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.right.equalTo(self);
            make.top.equalTo(self).offset(10);
            make.bottom.equalTo(self.descView.mas_top).offset(-10);
        }];
    }
    return self;
}

- (void)setDetailData:(id)detailData{
    [super setDetailData:detailData];
    self.descView.contentData = detailData;
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
